.class Lcom/example/m6wmr/ShopinActivity$6;
.super Ljava/lang/Thread;
.source "ShopinActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ShopinActivity;->submit()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ShopinActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ShopinActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    .line 579
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    const/4 v11, 0x0

    .line 581
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 582
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    .line 583
    const-string v10, "userInfo"

    .line 582
    invoke-virtual {v9, v10, v11}, Lcom/example/m6wmr/ShopinActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 584
    .local v4, "preferences":Landroid/content/SharedPreferences;
    const-string v9, "uid"

    const-string v10, ""

    invoke-interface {v4, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 585
    .local v0, "account":Ljava/lang/String;
    const-string v9, "pass"

    const-string v10, ""

    invoke-interface {v4, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 587
    .local v5, "pwd":Ljava/lang/String;
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->et_shopname:Landroid/widget/EditText;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$2(Lcom/example/m6wmr/ShopinActivity;)Landroid/widget/EditText;

    move-result-object v10

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-interface {v10}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6wmr/ShopinActivity;->access$24(Lcom/example/m6wmr/ShopinActivity;Ljava/lang/String;)V

    .line 588
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->et_shopaddr:Landroid/widget/EditText;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$3(Lcom/example/m6wmr/ShopinActivity;)Landroid/widget/EditText;

    move-result-object v10

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-interface {v10}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6wmr/ShopinActivity;->access$25(Lcom/example/m6wmr/ShopinActivity;Ljava/lang/String;)V

    .line 590
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 591
    .local v3, "msg":Landroid/os/Message;
    if-eqz v0, :cond_0

    const-string v9, ""

    invoke-virtual {v0, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 592
    :cond_0
    const/4 v9, 0x3

    iput v9, v3, Landroid/os/Message;->arg1:I

    .line 594
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 639
    :goto_0
    return-void

    .line 597
    :cond_1
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    const v11, 0x7f0c037f

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    invoke-virtual {v10, v11}, Lcom/example/m6wmr/ShopinActivity;->getSpinnerSelVal(Ljava/lang/Integer;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6wmr/ShopinActivity;->access$26(Lcom/example/m6wmr/ShopinActivity;Ljava/lang/String;)V

    .line 598
    const-string v9, "attrid>>>>>>>>>>>"

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->attrid:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$27(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 599
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->m:Lmyapp/MyApp;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$6(Lcom/example/m6wmr/ShopinActivity;)Lmyapp/MyApp;

    move-result-object v10

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, "/index.php?ctrl=app&action=openshop&uid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 600
    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&pwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&datatype=json"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 601
    const-string v10, "&shopname="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->shopname:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$11(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&shopaddress="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->shopaddr:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$12(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&shoplicense="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->imgurl:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$8(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&attrid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->attrid:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$27(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 599
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 603
    .local v8, "url":Ljava/lang/String;
    const-string v9, "ShopyushowACtivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "submit()\u3000"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 605
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$6(Lcom/example/m6wmr/ShopinActivity;)Lmyapp/MyApp;

    move-result-object v9

    invoke-static {v8, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v7

    .line 610
    .local v7, "str":Ljava/lang/String;
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 611
    .local v2, "json":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v2, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_2

    .line 613
    const-string v9, "msg"

    invoke-virtual {v2, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 614
    const/4 v9, 0x1

    iput v9, v3, Landroid/os/Message;->arg1:I

    .line 615
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 630
    .end local v2    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 632
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 633
    const/4 v9, 0x4

    iput v9, v3, Landroid/os/Message;->arg1:I

    .line 635
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 618
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    const-string v10, "usershopInfo"

    const/4 v11, 0x0

    invoke-virtual {v9, v10, v11}, Lcom/example/m6wmr/ShopinActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v6

    .line 620
    .local v6, "sharedPreferences":Landroid/content/SharedPreferences;
    invoke-interface {v6}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "name"

    iget-object v11, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->et_name:Landroid/widget/EditText;
    invoke-static {v11}, Lcom/example/m6wmr/ShopinActivity;->access$0(Lcom/example/m6wmr/ShopinActivity;)Landroid/widget/EditText;

    move-result-object v11

    invoke-virtual {v11}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v11

    invoke-interface {v11}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 621
    invoke-interface {v6}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "phone"

    iget-object v11, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->et_phone:Landroid/widget/EditText;
    invoke-static {v11}, Lcom/example/m6wmr/ShopinActivity;->access$1(Lcom/example/m6wmr/ShopinActivity;)Landroid/widget/EditText;

    move-result-object v11

    invoke-virtual {v11}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v11

    invoke-interface {v11}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 622
    invoke-interface {v6}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "shopname"

    iget-object v11, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->shopname:Ljava/lang/String;
    invoke-static {v11}, Lcom/example/m6wmr/ShopinActivity;->access$11(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 623
    invoke-interface {v6}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "shopaddr"

    iget-object v11, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->shopaddr:Ljava/lang/String;
    invoke-static {v11}, Lcom/example/m6wmr/ShopinActivity;->access$12(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 626
    const/4 v9, 0x2

    iput v9, v3, Landroid/os/Message;->arg1:I

    .line 628
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$6;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 644
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 645
    monitor-exit p0

    return-void

    .line 644
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
